{
StBoxLayoutPrivate *priv = self->priv;
gint n_children = 0;
- gint n_fixed = 0;
gfloat min_width, natural_width;
ClutterActor *child;
n_children++;
- if (clutter_actor_get_fixed_position_set (child))
- {
- n_fixed++;
- continue;
- }
-
if (priv->is_vertical)
{
_st_actor_get_preferred_width (child, -1, FALSE,
}
}
- if (!priv->is_vertical && (n_children - n_fixed) > 1)
+ if (!priv->is_vertical && n_children > 1)
{
- min_width += priv->spacing * (n_children - n_fixed - 1);
- natural_width += priv->spacing * (n_children - n_fixed - 1);
+ min_width += priv->spacing * (n_children - 1);
+ natural_width += priv->spacing * (n_children - 1);
}
if (min_width_p)
{
StBoxLayoutPrivate *priv = self->priv;
gint n_children = 0;
- gint n_fixed = 0;
gfloat min_height, natural_height;
ClutterActor *child;
n_children++;
- if (clutter_actor_get_fixed_position_set (child))
- {
- n_fixed++;
- continue;
- }
-
if (priv->is_vertical)
{
clutter_container_child_get ((ClutterContainer*) self, child,
}
}
- if (priv->is_vertical && (n_children - n_fixed) > 1)
+ if (priv->is_vertical && n_children > 1)
{
- min_height += priv->spacing * (n_children - n_fixed - 1);
- natural_height += priv->spacing * (n_children - n_fixed - 1);
+ min_height += priv->spacing * (n_children - 1);
+ natural_height += priv->spacing * (n_children - 1);
}
if (min_height_p)
{
gfloat child_min, child_nat;
gboolean child_fill;
- gboolean fixed;
-
- fixed = clutter_actor_get_fixed_position_set (child);
shrinks[i].child_index = i;
- if (CLUTTER_ACTOR_IS_VISIBLE (child) && !fixed)
+ if (CLUTTER_ACTOR_IS_VISIBLE (child))
{
if (priv->is_vertical)
{
{
ClutterActorBox child_box;
gfloat child_min, child_nat, child_allocated;
- gboolean xfill, yfill, expand, fixed;
+ gboolean xfill, yfill, expand;
StAlign xalign, yalign;
gdouble xalign_f, yalign_f;
if (!CLUTTER_ACTOR_IS_VISIBLE (child))
goto next_child;
- fixed = clutter_actor_get_fixed_position_set (child);
- if (fixed)
- {
- clutter_actor_allocate_preferred_size (child, flags);
- goto next_child;
- }
-
clutter_container_child_get ((ClutterContainer*) actor, child,
"x-fill", &xfill,
"y-fill", &yfill,